package com.embrion.bean;

import java.sql.ResultSet;
import java.sql.SQLException;

public class User {
	
	private Integer id;
	private String nome;
	private String cognome;
	private String username;
	private String password;
	
	
	public User(ResultSet res) throws SQLException {
		super();
		this.id = res.getInt("id");
		this.nome = res.getString("nome");
		this.cognome = res.getString("cognome");;
		this.username = res.getString("username");;
		this.password = res.getString("passwd");;
	}


	
	
	
	public Integer getId() {
		return id;
	}





	public void setId(Integer id) {
		this.id = id;
	}





	public String getNome() {
		return nome;
	}


	public String getCognome() {
		return cognome;
	}


	public String getUsername() {
		return username;
	}


	public String getPassword() {
		return password;
	}


	public void setNome(String nome) {
		this.nome = nome;
	}


	public void setCognome(String cognome) {
		this.cognome = cognome;
	}


	public void setUsername(String username) {
		this.username = username;
	}


	public void setPassword(String password) {
		this.password = password;
	}
	
	
	
	
	

}
